import 'package:fake_handwriting/page/create_page.dart';
import 'package:fake_handwriting/page/input_text.dart';
import 'package:fake_handwriting/page/login/find_password_page.dart';
import 'package:fake_handwriting/page/login/register_page.dart';
import 'package:fake_handwriting/page/main/main_page.dart';
import 'package:fake_handwriting/page/master_page.dart';
import 'package:fake_handwriting/page/online_font.dart';
import 'package:fake_handwriting/page/online_image.dart';
import 'package:fake_handwriting/page/splash.dart';
import 'package:fake_handwriting/test.dart';
import 'package:fake_handwriting/page/web.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

import 'generated/l10n.dart';
import 'page/account_page.dart';
import 'page/login/login_page.dart';
import 'page/login/reset_password_page.dart';
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(const MyApp());
  SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
    statusBarColor: Colors.transparent,
    statusBarIconBrightness: Brightness.dark,
  ));
}
class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: "splash",
      routes: {
        "test": (context) => const Test(),
        "splash": (context) => const Splash(),
        "main_page": (context) => const MainPage(),
        "login": (context) => const Login(),
        "register": (context) => const Register(),
        "find_password": (context) => const FindPassword(),
        "reset_password": (context) => const ResetPassword(),
        "web": (context) => const Web(),
        "account": (context) => const Account(),
        "create": (context) => const Create(),
        "online_image": (context) => const OnlineImage(),
        "online_font": (context) => const OnlineFont(),
        "input_text": (context) => const InputText(),
        "master": (context) => const Master(),
      },
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
        S.delegate
      ],
      supportedLocales: S.delegate.supportedLocales,
    );
  }
}